package com.qk.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qk.dto.activity.ActivityDTO;
import com.qk.entity.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {


    @Select("select * from activity where type = #{type}")
    List<Activity> selectByType(String type);

    List<ActivityDTO> selectByPage(ActivityDTO activityDTO);
}
